// PopoverPicker.js

'use strict';

import React, {Component} from "react";
import {View} from 'react-native';

import Overlay from 'teaset/components/Overlay/Overlay';
import PullMultiPickerView from './PullMultiPickerView';

export default class PullMultiPicker extends Overlay {

    static PullMultiPickerView = PullMultiPickerView;

    // fromBounds shape: x, y, width, height
    // items: array of string
    static show(title, items, selectedIndexes, onSelected, options = {}) {
        return super.show(
            <this.PullMultiPickerView
                title={title}
                items={items}
                selectedIndexes={selectedIndexes}
                onSelected={onSelected}
                {...options}
            />
        );
    }

}

